package com.bb.blog.code.threading.example.atomic;

import java.util.concurrent.atomic.AtomicStampedReference;

public class AtomicReferenceExample {
    private static AtomicStampedReference<Integer> atomicStampedReference = new AtomicStampedReference<>(Integer.valueOf(10),0);

    public static void main(String[] args) {
        atomicStampedReference.compareAndSet(atomicStampedReference.getReference(),Integer.valueOf(2),0,1);
    }
}
